using System;
using System.ServiceModel;
using Agatha.Common;
using Agatha.Common.WCF;

namespace  Source.Web.FrameWork
{
    public class RequestProcessorProxy : ClientBase<IWcfRequestProcessor>, IRequestProcessor
    {
        public Response[] Process(params Request[] requests)
        {
            return Channel.Process(requests);
        }

        public void ProcessOneWayRequests(params OneWayRequest[] requests)
        {
            throw new NotImplementedException();
        }

        public void Dispose()
        {
            try
            {
                Close();
            }
            catch (Exception)
            {
                Abort();
            }
        }
    }
}